<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>コントロールパネル</title>

    <link href="./assets/styles/default.css" rel="stylesheet" />
	<script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/import.js" type="text/javascript"></script>

</head>
<body>
{{$zhead}}


<div id="container">

{{$zmenu}}
    <article>
    	<h2><span>&nbsp;</span>会員管理<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
        	<ul>
					<li class="active"><a href="{{'Home/user/index'|U}}"><span>会員検索</span></a></li>
				  <li><a href="{{'Home/user/insert'|U}}"><span>会員登録</span></a></li>
			</ul>
        </nav>

        <section id="content">

        	<h3>会員検索検</h3>

			<ul class="btns b20" style="position:relative;top:10px;">
			<li class="btn left c"><a href="{{'Home/user/refer'|U}}?id={{$forms.id}}" >情報参照</a></li>
				<li class="btn center c"><a href="{{'Home/user/update'|U}}?id={{$forms.id}}">情報更新</a></li>
				<li class="btn center c"><a href="{{'Home/delivery/refer'|U}}?id={{$forms.id}}">配送先情報</a></li>
				<li class="btn center c"><a href="{{'Home/order/index'|U}}?id={{$forms.id}}" class="active">注文情報</a></li>
				<li class="btn center c"><a href="{{'Home/inquiry/index'|U}}?id={{$forms.id}}">問い合わせ</a></li>
				<li class="btn right c"><a href="{{'Home/mail/index'|U}}?id={{$forms.id}}">メール履歴</a></li>
			</ul>

			<h4><span>&nbsp;</span>配送先情報</h4>

			<p class="message">n件の注文があります。</p>

			<table id="search_result" class="sortable">
				<thead>
					<tr>
						<th class="align-center">注文日時<br />注文番号</th>
						<th>状態<br />経路</th>
						<th>支払方法<br />発送方法</th>
						<th>会員氏名</th>
						<th>配送先住所</th>
						<th>合計金額<br />手数料</th>
						<th>参照</th>
						<th>更新</th>
					</tr>

				</thead>
				<tbody>
					
				{{ foreach from=$data key=k item=v name="member" }}
					<tr>
						<td><label><input type="checkbox" name="ctrl" value=""/></label></td>
						<td class="align-left">{{$v.order_time}}<br />{{$v.order_number}}</td>
						  <td>{{if $v.order_status==1}}未確定{{/if}}
						  	  {{if $v.order_status==2}}確定{{/if}}
						  	  {{if $v.order_status==3}}発想済{{/if}}
						  	  {{if $v.order_status==4}}キャンセル{{/if}}
							<br />
							   {{if $v.order_way==1}}PC{{/if}}
							   {{if $v.order_way==2}}スマホ{{/if}}
							</td>
						<td>{{$v.sent_name1}} {{$v.sent_name2}}</td>
						<td>{{$v.sent_address}}</td>
						<td>{{if $v.order_pay==1}}クレジットカード {{/if}}
							  {{if $v.order_pay==2}}代引き{{/if}}
							<br />
							{{if $v.order_send==1}}郵便{{/if}}
							{{if $v.order_send==1}}ゆうパック {{/if}}
						</td>
						<td class="align-right">{{$v.goods_num*$v.goods_unitprice}}円<br />{{$v.order_buying}}円</td>
						<td class="update"><a href="{{'Home/order/refer'|U}}?id={{$v.id}}"">参照</a></td>
						<td class="preview"><a href="#">発送完了</a></td>
					</tr>
					{{ /foreach }}	
				</tbody>
			</table>

			<p class="pageNav">
				<a href="" class="current">1</a>
				<a href="">2</a>
				<a href="">3</a>
			</p>

        </section>
    </article>

</div>
{{$zfooter}}
</body>
</html>